﻿using System;
using System.Collections.Generic;

namespace Meqs.Entity
{
    [Serializable]
	public class ExamsSchool
	{
		public ExamsSchool()
		{
			m_RID = 0;
			m_Name = null;
			m_SchoolYear = 0;
			m_Term = 0;
			m_Grade = 0;
            m_CreateDate = DateTime.Now;
            m_SchoolMark = "";
        }

        #region SchoolMark

        private string m_SchoolMark;

        public string SchoolMark
        {
            get { return m_SchoolMark; }
            set { m_SchoolMark = value; }
        }

        #endregion 
		#region RID
		
		private int m_RID;
		
		public int RID
		{
			get { return m_RID; }
			set { m_RID = value; }
		}
		
		#endregion
		
		#region Name
		
		private string m_Name;
		
		public string Name
		{
			get { return m_Name; }
			set { m_Name = value; }
		}
		
		#endregion
		
		#region SchoolYear
		
		private int m_SchoolYear;
		
		public int SchoolYear
		{
			get { return m_SchoolYear; }
			set { m_SchoolYear = value; }
		}
		
		#endregion
		
		#region Term
		
		private short m_Term;
		
		public short Term
		{
			get { return m_Term; }
			set { m_Term = value; }
		}
		
		#endregion
		
		#region Grade
		
		private int m_Grade;
		
		public int Grade
		{
			get { return m_Grade; }
			set { m_Grade = value; }
		}
		
		#endregion
		
		#region ClassType
		
		private int m_ClassType;
		
		public int ClassType
		{
			get { return m_ClassType; }
			set { m_ClassType = value; }
		}
		
		#endregion

        #region CreateDate

        private DateTime m_CreateDate;

        public DateTime CreateDate
        {
            get { return m_CreateDate; }
            set { m_CreateDate = value; }
        }

        #endregion
		
		#region Rewrite Equals and HashCode
		
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if( this == obj ) return true;
			if( ( obj == null ) || ( obj.GetType() != GetType() ) ) return false;
			ExamsSchool castObj = (ExamsSchool) obj;
			return ( castObj != null )
 && m_RID == castObj.RID;		}
		
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 10;
			hash = hash * 10
 * m_RID.GetHashCode();			return hash;
		}
		
		#endregion
		
		
	}
}